<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
  <head>
      <link rel="stylesheet" type="text/css" href="<c:url value='/css/Pub.css'/>"></link>
      <meta http-equiv="pragma" content="no-cache">
      <meta http-equiv="cache-control" content="no-cache">
      <meta http-equiv="expires" content="0">
      <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
      <meta http-equiv="description" content="This is my page">
      <!-- 如果出现没有效果的情况直接检查是否是因为路径的问题 -->
      <link rel="stylesheet" href="${pageContext.request.contextPath}/easyui/themes/default/easyui.css" type="text/css"></link>
      <link rel="stylesheet" href="${pageContext.request.contextPath}/easyui/themes/icon.css" type="text/css"></link>
      <script type="text/javascript" src="${pageContext.request.contextPath}/easyui/jquery.min.js"></script>
      <script type="text/javascript" src="${pageContext.request.contextPath}/easyui/jquery.easyui.min.js"></script>
  </head>
  <body><!-- easyui必须加表头-->
  		<p>添加收货地址-></p>
  		<form name="f1" method="post" action="<c:url value='/address?action=addAddress'/>" target="_dataFrame">
            <table class="easyui-datagrid" style="width:450px;height:250px"
                   data-options="url:'datagrid_data.json',fitColumns:true,singleSelect:true">
                <thead>
                <tr>
                    <th data-options="field:'code',width:100" align="center">地址明细</th>
                    <th data-options="field:'name',width:100" align="center">填写结果</th>
                </tr>
                </thead>
                <tbody>
                <tr style="background:#9393FF;">
                    <td colspan="2" align="center">
                        添加收货地址
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        收货人/地址：
                    </td>
                    <td>
                        <textarea name="name" class="txt" rows="3" cols="40"></textarea>
                    </td>
                </tr>
                <tr>
                    <td>
                        电话：
                    </td>
                    <td>
                        <input class="txt" type="text" name="phone"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        邮编：
                    </td>
                    <td>
                        <input class="txt" type="text" name="zip"/>
                    </td>
                </tr>
                <tr>
                    <td>

                    </td>
                    <td>
                        <button class="OperBtn" onclick="sure();">确定</button>
                        <input type="button" class="OperBtn" onclick="window.close();return false;" value="取消"/>
                    </td>
                </tr>
                </tbody>
            </table>
  		</form>
  		<iframe name="_dataFrame" style="display:none;"></iframe>
  </body>
  <script type="text/javascript">
  		function sure(){
  			document.forms['f1'].submit();
  		}
  		//添加成功
  		function addBack(){
  			window.opener.window.location.reload();
  			window.close();
  		}
  </script>
</html>
